package com.ktjy.service;

import com.ktjy.pojo.SysUser;
import com.ktjy.utils.Page;

public interface SysUserService {
    /**
     * 登录
     * @param account
     * @param password
     * @return
     */
    SysUser login(String account, String password);

    Page<SysUser> findPage(SysUser condition, Integer pageNo, Integer pageSize);

    boolean save(SysUser sysUser);

    SysUser findById(Long id);

    boolean update(SysUser sysUser);

    boolean delete(Long id);

    SysUser findByAccount(String account);
}
